package com.wcm.system.model.faxuewang;

import javax.persistence.*;

/**
 * @Author：dapan
 * @Description:cadota
 * @Date:Create in 10:35 2018/7/30
 * @Modifird By:
 */
@Entity
@Table(name = "specialid", schema = "dbo", catalog = "iolaw")
public class SpecialidEntity {
    private String title;
    private Integer pid;
    private Integer cid;
    private Integer sid;
    private Integer oid;
    private String cids;
    private String spaimg;
    private Integer tops;


    @Basic
    @Column(name = "title", nullable = true, length = 200)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "pid", nullable = true)
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Basic
    @Column(name = "cid", nullable = true)
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Basic
    @Column(name = "sid", nullable = true)
    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    @Basic
    @Column(name = "oid", nullable = true)
    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    @Basic
    @Column(name = "cids", nullable = true, length = 4000)
    public String getCids() {
        return cids;
    }

    public void setCids(String cids) {
        this.cids = cids;
    }

    @Basic
    @Column(name = "spaimg", nullable = true, length = 500)
    public String getSpaimg() {
        return spaimg;
    }

    public void setSpaimg(String spaimg) {
        this.spaimg = spaimg;
    }

    @Basic
    @Column(name = "tops", nullable = true)
    public Integer getTops() {
        return tops;
    }

    public void setTops(Integer tops) {
        this.tops = tops;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SpecialidEntity that = (SpecialidEntity) o;

        if (id != that.id) return false;
        if (title != null ? !title.equals(that.title) : that.title != null) return false;
        if (pid != null ? !pid.equals(that.pid) : that.pid != null) return false;
        if (cid != null ? !cid.equals(that.cid) : that.cid != null) return false;
        if (sid != null ? !sid.equals(that.sid) : that.sid != null) return false;
        if (oid != null ? !oid.equals(that.oid) : that.oid != null) return false;
        if (cids != null ? !cids.equals(that.cids) : that.cids != null) return false;
        if (spaimg != null ? !spaimg.equals(that.spaimg) : that.spaimg != null) return false;
        if (tops != null ? !tops.equals(that.tops) : that.tops != null) return false;

        return true;
    }


    private int id;

    @Id
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
